<%@ Register TagPrefix="cc1" Namespace="Library.WebControls" Assembly="lib" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="LaContractUpdate.aspx.vb" Inherits="ccapps.Web.page.LaContractUpdate" %>
<script language="javascript">
	function setActivityStateAllItemsInTable(elementId, selectionCellIndex, enabled)
	{
		var sourceTable = document.all[elementId];
		for(var rowIndex = 0; rowIndex < sourceTable.rows.length; rowIndex++)
		{
			if (sourceTable.rows[rowIndex].cells.length > selectionCellIndex)
				var checkBoxList = sourceTable.rows[rowIndex].cells[selectionCellIndex].getElementsByTagName('INPUT');
				if (checkBoxList.length > 0)
					checkBoxList[0].onclick = function(){this.checked=this.checked;return false;};
		}
	}
</script>
<form id="Form1" method="post" runat="server">
	<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="610" border="0">
		<tr>
			<TD class="solbaslik" width="190">LA Customer Code (sirket seviyesi)</TD>
			<TD class="input"><asp:textbox id="txtCustCode" tabIndex="2" runat="server" width="120"></asp:textbox>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<asp:button id="btnAuthenticateCustomer" runat="server" Width="123px" Text="Getir" CssClass="button01"></asp:button></TD>
		</tr>
		<TR runat="server" id="trCustomerCode" Visible="false">
			<TD class="solbaslik" width="190">CustCode</TD>
			<TD class="input">
				<asp:label id="lblCustCode" runat="server"></asp:label></TD>
		</TR>
		<TR runat="server" id="trCustomerTitle" Visible="false">
			<TD class="solbaslik" width="190">Customer Name</TD>
			<TD class="input"><asp:label id="lblCustomerName" runat="server"></asp:label></TD>
		</TR>
	</TABLE>
	<BR>
	<asp:datagrid id="dgAddressList" runat="server" Width="610px" AutoGenerateColumns="False">
		<ItemStyle CssClass="input"></ItemStyle>
		<HeaderStyle ForeColor="White" CssClass="prompt"></HeaderStyle>
		<Columns>
			<asp:BoundColumn DataField="CONTACTNAME" HeaderText="Contact Name">
				<HeaderStyle ForeColor="White"></HeaderStyle>
				<ItemStyle Wrap="False"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="ADDRESSTYPE" HeaderText="Address Type">
				<HeaderStyle ForeColor="White"></HeaderStyle>
				<ItemStyle Wrap="False"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="DEFINITIONDATE" HeaderText="Definition Date" DataFormatString="{0:dd.MM.yyyy}">
				<HeaderStyle ForeColor="White"></HeaderStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="LASTMODIFICATIONDATE" HeaderText="Last Modification Date" DataFormatString="{0:dd.MM.yyyy}">
				<HeaderStyle ForeColor="White" Width="50px"></HeaderStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="LASTVALIDATIONDATE" HeaderText="Last Validation Date" DataFormatString="{0:dd.MM.yyyy}">
				<HeaderStyle ForeColor="White"></HeaderStyle>
			</asp:BoundColumn>
			<asp:TemplateColumn>
				<HeaderStyle ForeColor="White" Width="50px"></HeaderStyle>
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
				<ItemTemplate>
					<asp:LinkButton id=lbtnSelectAddress runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "AddressSequence") %>' OnCommand="SelectAddress">Edit</asp:LinkButton>
				</ItemTemplate>
			</asp:TemplateColumn>
		</Columns>
	</asp:datagrid><br>
	<br>
	<table width="610" id="tblContactInfo" runat="server" Visible="false">
		<tr>
			<td class="prompt" colSpan="4">ADRESS</td>
		</tr>
		<TR>
			<TD class="solbaslik">Firs Name</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtFirstName" tabIndex="2" runat="server" width="200" MaxLength="40"></asp:textbox>
				<asp:RequiredFieldValidator style="Z-INDEX: 0" id="RequiredFieldValidator1" runat="server" ErrorMessage=" * Required!"
					ControlToValidate="txtFirstName" Display="Dynamic"></asp:RequiredFieldValidator></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Last Name</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtLastName" tabIndex="2" runat="server" width="200" MaxLength="40"></asp:textbox>
				<asp:RequiredFieldValidator style="Z-INDEX: 0" id="RequiredFieldValidator3" runat="server" ErrorMessage=" * Required!"
					ControlToValidate="txtLastName" Display="Dynamic"></asp:RequiredFieldValidator></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Name of Company</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtNameOfCompany" tabIndex="2" runat="server" width="200" MaxLength="56"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Zone</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtZone" tabIndex="2" runat="server" width="200" MaxLength="40"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Additional Note</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtAdditionalNote" tabIndex="2" runat="server" width="200" MaxLength="40"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Street</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtStreet" tabIndex="2" runat="server" width="200" MaxLength="70"></asp:textbox>&nbsp; 
				No&nbsp;<asp:textbox id="txtStreetNo" tabIndex="2" runat="server" width="50" MaxLength="15"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Zip</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtZip" tabIndex="2" runat="server" width="200" MaxLength="15"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">City</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtCity" tabIndex="2" runat="server" width="200" MaxLength="40"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Telefon No 1</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtPhoneNumber1Area" tabIndex="2" runat="server" width="40" MaxLength="3"></asp:textbox>&nbsp;
				<asp:textbox id="txtPhoneNumber1" runat="server" width="153" MaxLength="7"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Telefon No 2</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtPhoneNumber2Area" tabIndex="2" runat="server" width="40" MaxLength="3"></asp:textbox>&nbsp;
				<asp:textbox id="txtPhoneNumber2" runat="server" width="153" MaxLength="7"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">FaxNo</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtFaxNumberArea" tabIndex="2" runat="server" width="40" MaxLength="3"></asp:textbox>&nbsp;
				<asp:textbox id="txtFaxNumber" runat="server" width="153" MaxLength="7"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Email</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtEmail" tabIndex="2" runat="server" width="200" MaxLength="100"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Short Msg. No</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtShortMessageNo" tabIndex="2" runat="server" width="200" MaxLength="15"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Address Type</TD>
			<TD class="input" colSpan="3"><asp:checkboxlist id="clstAddressTypes" runat="server" RepeatColumns="2">
					<asp:ListItem Value="ISBILLADDRESS">Bill Address</asp:ListItem>
					<asp:ListItem Value="ISENVELOPEADDRESS">Envelope Address</asp:ListItem>
					<asp:ListItem Value="ISPREVIOUSADDRESS">Previous Address</asp:ListItem>
					<asp:ListItem Value="ISDETAILEDBILLADDRESS">Detailed Bill Address</asp:ListItem>
					<asp:ListItem Value="ISUSERADDRESS">User Address</asp:ListItem>
					<asp:ListItem Value="ISPRIVATEADDRESS">Private Address</asp:ListItem>
					<asp:ListItem Value="ISCONTRACTADDRESS">Contract Address</asp:ListItem>
					<asp:ListItem Value="ISDIRECTORYADDRESS">Directory Address</asp:ListItem>
					<asp:ListItem Value="ISDELIVERYADDRESS">Delivery Address</asp:ListItem>
				</asp:checkboxlist></TD>
		</TR>
		<tr>
			<td class="prompt" colSpan="4">PERSONAL</td>
		</tr>
		<TR>
			<TD class="solbaslik" height="19">Birthdate</TD>
			<TD class="input" colSpan="3" height="19">
				<asp:textbox id="txtBirthdate" runat="server" Width="160px"></asp:textbox>&nbsp;<A onclick="if(self.gfPop)gfPop.fPopCalendar(document.getElementById('txtBirthdate'));return false;"
					href="javascript:void(0)"><IMG height="22" alt="" src="/ccapps/util/calender/calbtn.gif" width="34" align="absMiddle"
						border="0" name="popcal"></A>
				<asp:RequiredFieldValidator style="Z-INDEX: 0" id="RequiredFieldValidator4" runat="server" ErrorMessage=" * Required!"
					ControlToValidate="txtBirthdate" Display="Dynamic"></asp:RequiredFieldValidator>
			</TD>
		</TR>
		<TR>
			<TD class="solbaslik">Contact Person</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtContactPerson" tabIndex="2" runat="server" width="200" MaxLength="40"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Remark 2</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtRemark2" tabIndex="2" runat="server" width="200" MaxLength="40"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Type Of Document</TD>
			<TD class="input" colSpan="3"><asp:dropdownlist id="ddlTypeOfDocument" runat="server" DataValueField="Value" DataTextField="Text"
					Width="200px"></asp:dropdownlist>
				<asp:CompareValidator style="Z-INDEX: 0" id="CompareValidator1" runat="server" ErrorMessage=" * Required!"
					ControlToValidate="ddlTypeOfDocument" Display="Dynamic" Type="Integer" ValueToCompare="0" Operator="GreaterThan"></asp:CompareValidator></TD>
		</TR>
		<TR>
			<TD class="solbaslik">ID Document No</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtIDDocumentNo" tabIndex="2" runat="server" width="200" MaxLength="30"></asp:textbox>
				<asp:RequiredFieldValidator style="Z-INDEX: 0" id="RequiredFieldValidator2" runat="server" ErrorMessage=" * Required!"
					ControlToValidate="txtIDDocumentNo" Display="Dynamic"></asp:RequiredFieldValidator></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Company Registration No</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtCompanyRegistrationNo" tabIndex="2" runat="server" width="200" MaxLength="20"></asp:textbox></TD>
		</TR>
		<TR>
			<TD class="solbaslik">Tax Registration No</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtTaxRegistrationNo" tabIndex="2" runat="server" width="200" MaxLength="20"></asp:textbox></TD>
		</TR>
		<TR style="DISPLAY:none">
			<TD class="solbaslik">TC ID Number</TD>
			<TD class="input" colSpan="3"><asp:textbox id="txtTCIDNumber" tabIndex="2" runat="server" width="200" Enabled="False" MaxLength="30"></asp:textbox></TD>
		</TR>
	</table>
	<br>
	<asp:label id="Lblok" runat="server" Width="608px" Font-Size="10pt" ForeColor="#C00000" Font-Bold="True"
		Font-Names="Tahoma" Height="14px"></asp:label><br>
	<SCRIPT src="/ccapps/web/js/buttonset.js"></SCRIPT>
	<cc1:ContentPaneFooter id="ContentPaneFooter1" runat="server" CssClass="nav" Width="100%" ButtonsCssclass="button01"
		ConfirmText="Devam Et" NavigateBackText="Hareketler" NavigateBackClientFunction="javascript:location.href='LaContractUpdate_Report.aspx'"></cc1:ContentPaneFooter>
	<!--
		<script>begin();link("Hareketler","hareket");link("Update","update");end();</script>
	-->
</form>
<script language="javascript">
	if (document.all['clstAddressTypes'] != null)
	{
		setActivityStateAllItemsInTable('clstAddressTypes', 0, false);
		setActivityStateAllItemsInTable('clstAddressTypes', 1, false);
	}
</script>
